const {baseService} =require('../../baseService')
const model =require('../../../dao/model/model')
const beansEnter =require('../../../beans/beansEnter')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class xuekeAndKemuError extends Error {
    constructor(error,message='xuekeAndKemu异常'){
        super()
        this.error = error
        this.message=message
    }
}


class xuekeAndKemu extends baseService{

    static ins = new xuekeAndKemu()
    constructor(){
        super(model.xuekeAndKemuModel,beansEnter.xuekeAndKemu,xuekeAndKemuError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new xuekeAndKemu()
        }
    }


}







module.exports={xuekeAndKemu}
